using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using Ent.Voice.Nomination;
using System.Drawing;
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Security.Permissions;
namespace Ent.Web.WebControl
{
    public enum EntryMode { TopBottom, TopLeft, Top, Left, HomePage, Search }
    [AspNetHostingPermission(SecurityAction.Demand,
      Level = AspNetHostingPermissionLevel.Minimal)]
    public class DashEntry : System.Web.UI.UserControl, iControls_DashEntry
    {
        #region Style
        private string _headerclass = "";
        public string HeaderClass
        {
            get { return _headerclass; }
            set { _headerclass = value; }
        }
        private string _suspendheaderclass = "";
        public string SuspendHeaderClass
        {
            get { return _suspendheaderclass; }
            set { _suspendheaderclass = value; }
        }
        private string _liveheaderclass = "";
        public string LiveHeaderClass
        {
            get { return _liveheaderclass; }
            set { _liveheaderclass = value; }
        }
        private string _footerclass = "";
        public string FooterClass
        {
            get { return _footerclass; }
            set { _footerclass = value; }
        }
        private string _bodyclass = "";
        public string BodyClass
        {
            get { return _bodyclass; }
            set { _bodyclass = value; }
        }
        private EntryMode _mode = EntryMode.TopBottom;
        public EntryMode Mode
        {
            get { return _mode; }
            set { _mode = value; }
        }
        private BorderStyle _borderStyle = BorderStyle.None;
        public BorderStyle BorderStyle
        {
            get { return _borderStyle; }
            set { _borderStyle = value; }
        }
        private string _borderColor = "#000000";
        public string BorderColor
        {
            get { return _borderColor; }
            set { _borderColor = value; }
        }
        private string _borderWidth = "0px";
        public string BorderWidth
        {
            get { return _borderWidth; }
            set { _borderWidth = value; }
        }
        private Color _backgroundColor = Color.Transparent;
        public Color BackgroundColor
        {
            get { return _backgroundColor; }
            set { _backgroundColor = value; }
        }
        private Color _titleBackgroundColor = Color.Transparent;
        public Color TitleBackgroundColor
        {
            get { return _titleBackgroundColor; }
            set { _titleBackgroundColor = value; }
        }
        private Color _detailsBackgroundColor = Color.Transparent;
        public Color DetailsBackgroundColor
        {
            get { return _detailsBackgroundColor; }
            set { _detailsBackgroundColor = value; }
        }
        private Unit _width = Unit.Percentage(100);
        public Unit Width
        {
            get { return _width; }
            set { _width = value; }
        }
        private Unit _height= Unit.Percentage(100);
        public Unit Height
        {
            get { return _height; }
            set { _height = value; }
        }
        private bool _showSeperator = true;
        public bool ShowSeperator
        {
            get { return _showSeperator; }
            set { _showSeperator = value; }
        }
        private bool _showThumb = true;
        public bool ShowThumb
        {
            get { return _showThumb; }
            set { _showThumb = value; }
        }
        private bool _showControls = false;
        public bool ShowControls
        {
            get { return _showControls; }
            set { _showControls = value; }
        }
        private bool _allowMaximize = false;
        public bool AllowMaximize
        {
            get { return _allowMaximize; }
            set { _allowMaximize = value; }
        }
        private bool _showComments = false;
        public bool ShowComments
        {
            get { return _showComments; }
            set { _showComments = value; }
        }
        private bool _autoStart = false;
        public bool AutoStart
        {
            get { return _autoStart; }
            set { _autoStart = value; }
        }
        #endregion
        #region Entry
        private Entry _entry;
        public Entry Entry
        {
            get { return _entry; }
            set { _entry = value; }
        }
        private int _fileWidth = 300;
        public int FileWidth
        {
            get { return _fileWidth; }
            set { _fileWidth = value; }
        }
        private int _fileHeight = 150;
        public int FileHeight
        {
            get { return _fileHeight; }
            set { _fileHeight = value; }
        }
        private bool _showMedia = false;
        public bool ShowMedia
        {
            get { return _showMedia; }
            set { _showMedia = value; }
        }
        private string _mediaFile = "";
        public string MediaFile
        {
            get { return _mediaFile; }
            set { _mediaFile = value; }
        }
        #endregion
        #region FontSize
        private FontUnit _titleFontSize = FontUnit.XSmall;
        public FontUnit TitleFontSize
        {
            get { return _titleFontSize; }
            set { _titleFontSize = value; }
        }
        private FontUnit _entryFontSize = FontUnit.XSmall;
        public FontUnit EntryFontSize
        {
            get { return _entryFontSize; }
            set { _entryFontSize = value; }
        }
        private FontUnit _userFontSize = FontUnit.XSmall;
        public FontUnit UserFontSize
        {
            get { return _userFontSize; }
            set { _userFontSize = value; }
        }
        #endregion
        #region MaxChar
        private int _titleMaxChar = 15;
        public int TitleMaxChar
        {
            get { return _titleMaxChar; }
            set { _titleMaxChar = value; }
        }
        private int _entryMaxChar = 15;
        public int EntryMaxChar
        {
            get { return _entryMaxChar; }
            set { _entryMaxChar = value; }
        }
        private int _userMaxChar = 15;
        public int UserMaxChar
        {
            get { return _userMaxChar; }
            set { _userMaxChar = value; }
        }
        #endregion
        #region TextColor
        private Color _titleTextColor = Color.White;
        public Color TitleTextColor
        {
            get { return _titleTextColor; }
            set { _titleTextColor = value; }
        }
        private Color _entryTextColor = Color.White;
        public Color EntryTextColor
        {
            get { return _entryTextColor; }
            set { _entryTextColor = value; }
        }
        private Color _userTextColor = Color.White;
        public Color UserTextColor
        {
            get { return _userTextColor; }
            set { _userTextColor = value; }
        }
        #endregion
        #region TextAlign
        private HorizontalAlign _titleTextAlign = HorizontalAlign.Center;
        public HorizontalAlign TitleTextAlign
        {
            get { return _titleTextAlign; }
            set { _titleTextAlign = value; }
        }
        private HorizontalAlign _entryTextAlign = HorizontalAlign.Center;
        public HorizontalAlign EntryTextAlign
        {
            get { return _entryTextAlign; }
            set { _entryTextAlign = value; }
        }
        private HorizontalAlign _userTextAlign = HorizontalAlign.Center;
        public HorizontalAlign UserTextAlign
        {
            get { return _userTextAlign; }
            set { _userTextAlign = value; }
        }
        #endregion
        #region CellHeight
        private Unit _titleCellHeight = Unit.Pixel(5);
        public Unit TitleCellHeight
        {
            get { return _titleCellHeight; }
            set { _titleCellHeight = value; }
        }
        private Unit _userCellHeight = Unit.Pixel(5);
        public Unit UserCellHeight
        {
            get { return _userCellHeight; }
            set { _userCellHeight = value; }
        }
        #endregion
        private int _orderby = -1;
        public int OrderBy
        {
            get { return _orderby; }
            set { _orderby = value; }
        }
        
    }
}
